package com.lmm.yydshtester.command;

import com.lmm.yydshtester.distributed.WorkerManager;
import com.lmm.yydshtester.util.Logger;
import org.springframework.stereotype.Service;

import java.util.Scanner;

/**
 * 查看worker实例
 * */
@Service("WorkerViewCommand")
public class WorkerViewCommand implements BaseCommand
{
    public static final String KEY = "3";

    @Override
    public void exec(Scanner scanner)
    {
        Logger.cfo("查看工作节点");

        WorkerManager.getInst().viewWorker();

    }


    @Override
    public String getKey()
    {
        return KEY;
    }

    @Override
    public String getTip()
    {
        return "view workers";
    }

}
